// $ANTLR 3.4 C:\\Users\\Javier\\workspace_pl\\practica12\\src\\com\\pl\\ExpTreeParser.g 2013-02-25 17:38:09

   package com.pl;


import org.antlr.runtime.*;
import org.antlr.runtime.tree.*;
import java.util.Stack;
import java.util.List;
import java.util.ArrayList;


@SuppressWarnings({"all", "warnings", "unchecked"})
public class ExpTreeParser extends TreeParser {
    public static final String[] tokenNames = new String[] {
        "<invalid>", "<EOR>", "<DOWN>", "<UP>", "BLANCO", "DIGITO", "DIV", "MULT", "NUMERO", "PAR_AB", "PAR_CER", "RESTA", "SEPARADOR", "SUMA"
    };

    public static final int EOF=-1;
    public static final int BLANCO=4;
    public static final int DIGITO=5;
    public static final int DIV=6;
    public static final int MULT=7;
    public static final int NUMERO=8;
    public static final int PAR_AB=9;
    public static final int PAR_CER=10;
    public static final int RESTA=11;
    public static final int SEPARADOR=12;
    public static final int SUMA=13;

    // delegates
    public TreeParser[] getDelegates() {
        return new TreeParser[] {};
    }

    // delegators


    public ExpTreeParser(TreeNodeStream input) {
        this(input, new RecognizerSharedState());
    }
    public ExpTreeParser(TreeNodeStream input, RecognizerSharedState state) {
        super(input, state);
    }

protected TreeAdaptor adaptor = new CommonTreeAdaptor();

public void setTreeAdaptor(TreeAdaptor adaptor) {
    this.adaptor = adaptor;
}
public TreeAdaptor getTreeAdaptor() {
    return adaptor;
}
    public String[] getTokenNames() { return ExpTreeParser.tokenNames; }
    public String getGrammarFileName() { return "C:\\Users\\Javier\\workspace_pl\\practica12\\src\\com\\pl\\ExpTreeParser.g"; }


    public static class rule_return extends TreeRuleReturnScope {
        CommonTree tree;
        public Object getTree() { return tree; }
    };


    // $ANTLR start "rule"
    // C:\\Users\\Javier\\workspace_pl\\practica12\\src\\com\\pl\\ExpTreeParser.g:14:1: rule :;
    public final ExpTreeParser.rule_return rule() throws RecognitionException {
        ExpTreeParser.rule_return retval = new ExpTreeParser.rule_return();
        retval.start = input.LT(1);


        CommonTree root_0 = null;

        CommonTree _first_0 = null;
        CommonTree _last = null;

        try {
            // C:\\Users\\Javier\\workspace_pl\\practica12\\src\\com\\pl\\ExpTreeParser.g:14:5: ()
            // C:\\Users\\Javier\\workspace_pl\\practica12\\src\\com\\pl\\ExpTreeParser.g:14:7: 
            {
            root_0 = (CommonTree)adaptor.nil();


            }

            retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);

        }
        finally {
        	// do for sure before leaving
        }
        return retval;
    }
    // $ANTLR end "rule"

    // Delegated rules


 

}